@extends('admin.master')
<script src="/js/admin/maintainInfos.js"></script>
@section('title', '设备列表')
	
@section('firstItem')
@parent
				<span onclick="window.location.href='/admin/device/maintainInfos'">维护信息</span> &raquo;
				<span>维修记录</span>
				<input class="a_indexbg" type="hidden" value="maintaininfos" />
@stop
@section('searchList')
@parent
<div class="seizeBox"></div>
@stop
@section('dataTables')
@parent
<table class="seviceInfo dataTables" cellspacing="0" cellpadding="0">
	<thead>
		<tr>
			<td>序号</td>
			<td>设备编号</td>
			<td>用户名</td>
			<td>手机号码</td>
			<td>安装地址</td>
			<td>维护保养部件</td>
			<td>预约时间</td>
			<td>收费金额(元)</td>
			<td>维护人</td>
			<td>维修人电话</td>
			<td>维护日期</td>
			<td>备注信息</td>
			<td>是否已处理</td>
		</tr>
	</thead>
	<tbody>
		@for($i=0, $maintainInfoCount=count($maintain_infos); $i<$maintainInfoCount; $i++)
		<tr >
			<td>{{ $i+1 }}</td>
			<td class="deviceCodeCell devicecodeVal">{{ $maintain_infos[$i]->device_code }}</td>
			<td class="userNameCell">{{ $maintain_infos[$i]->customer_name }}</td>
			<td class="userPhoneCell">{{ $maintain_infos[$i]->phone }}</td>
			<td class="userAddressCell">{{ $maintain_infos[$i]->installation_address }}</td>
			<td class="servicePartCell">{{ $maintain_infos[$i]->component }}</td>
			<td class="YMDH"><span class="yearBBox">{{ $maintain_infos[$i]->reserve_at->year }}</span>-<span class="monthBBox">{{ $maintain_infos[$i]->reserve_at->month }}</span>-<span class="dayBBox">{{ $maintain_infos[$i]->reserve_at->day }}</span><span class="hoursBBox"> {{ $maintain_infos[$i]->reserve_at->hour }}</span>时</td>
			<td class="paymentCell">{{ $maintain_infos[$i]->charge }}</td>
			<td class="serviceMenCell">{{ $maintain_infos[$i]->operator }}</td>
			<td class="serviceMenTelCell">{{ $maintain_infos[$i]->operator_phone }}</td>
			<td class="YMD" style="width:160px;">
				<span class="yearBox">{{ $maintain_infos[$i]->maintain_at->year }}</span>&nbsp;-<span class="monthBox">{{ $maintain_infos[$i]->maintain_at->month }}</span>&nbsp;-<span class="dayBox">{{ $maintain_infos[$i]->maintain_at->day }}</span>
			</td>
			<td class="MemoText" style="width:200px;">{{ $maintain_infos[$i]->remark }}</td>
			<td><input type="hidden" value="{{ $maintain_infos[$i]->id }}" />
			<span class="checkedBox checkedBoxBg"></span>
			</td>
		</tr>
		@endfor

	</tbody>
</table>
@stop
@section('add_div')
	@parent
	
@stop
@section('page_num')
<ul class="pagination pagination-lg"> 
	{!! $maintain_infos ->render() !!}
</ul>			
@stop
@section('infor_promit')
@parent
@stop
